public class FADepartment extends Department{

    @Override
    public void visit(FulltimeEmployee employee) {
        employee.setWeeklyWage(employee.getWorkTime()*employee.singleTimeWageAddNormal);
        System.out.println("现在"+employee.getName()+"的一周的工资是"+employee.getWeeklyWage());
        System.out.println("--------------------------------------------------------------");
    }

    @Override
    public void visit(ParttimeEmployee employee) {
        employee.setWeeklyWage(employee.getWorkTime()*employee.singleTimeWageAddNormal);
        System.out.println("现在"+employee.getName()+"的一周的工资是"+employee.getWeeklyWage());
        System.out.println("--------------------------------------------------------------");
    }
}
